//
// Created by Rory on 2020/10/16.
//

#define GENERATE_TEST_FUNC_SIGNATURE
#define DEBUG_PRINT

#include "sequentialqueue.h"



TestFunc(BasicTestOfSCQueue){
    SCQueueP q;
    CreateSCQueue(&q,1);
    int e = 0;

    ChangeAutoExpandStausOfSCQueue(q,false);

    Enqueue(&q,4);
    Enqueue(&q,33);
    Enqueue(&q,12);
    DeQueue(&q,&e);



    PrintIntSCQueue(q);

    DestroySCQueue(q);
}

TestFunc(){

}

int main(){
    InvokeFunc(BasicTestOfSCQueue);

    int a[] = {3,4,1,2},*p[] = {a,a+1,a+2,a+3},**q = *p;
    printf("%p,%p,%p,%p\n",&a[0],&a[1],&a[2],&a[3]);
    printf("%p,%p,%p,%p\n",p[0],p[1],p[2],p[3]);
    return 0;
}
